package cn.lijiajia3515.cairo.auth.modules.department;

import cn.lijiajia3515.cairo.auth.CairoAuthMeta;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * 部门
 */
@Data
@Accessors(chain = true)

@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
public class Department implements Serializable {

	/**
	 * id
	 */
	private String id;

	/**
	 * parent
	 */
	private String parent;

	/**
	 * 祖先
	 */
	private List<String> ancestors;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 备注
	 */
	private String remark;

	private Long sort;

	private CairoAuthMeta meta;
}
